# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=profanity
pkgver=0.9.5
pkgrel=0
pkgdesc="Ncurses based XMPP client"
url="https://github.com/profanity-im/profanity"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	autoconf
	autoconf-archive
	automake
	libtool
	pkgconf
	libmesode-dev
	ncurses-dev
	glib-dev
	curl-dev
	readline-dev
	libnotify-dev
	libxscrnsaver
	libotr-dev
	gpgme-dev
	libsignal-protocol-c-dev
	libgcrypt-dev
	gtk+2.0-dev
	python3-dev
	cmocka-dev
"
subpackages="$pkgname-dev $pkgname-doc"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/profanity-im/profanity/archive/$pkgver.tar.gz
	"

prepare() {
	default_prepare
	./bootstrap.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="4f6e1c9f05d61600de47a8d23d17477a0ebf62bfecddc7ed3bc33321edb9b3456d73858549198d469ab977f13b3aaa250f155629d05c45ee312c49e4f976735d  profanity-0.9.5.tar.gz"
